import cv2
import numpy as np

img = cv2.imread('C:\\Users\\Mengyang\\Desktop\\112.png')

new = cv2.flip(img,0) #上下翻转
new1 = cv2.flip(img,1) #左右翻转
new2 = cv2.flip(img,-1) #先上下翻转，再左右翻转

cv2.imshow('img',img)
cv2.imshow('new',new)
cv2.imshow('new1',new1)
cv2.imshow('new2',new2)

cv2.waitKey(0)